import 'package:amway_superapp_creator_plugin/config/colors_config.dart';
import 'package:amway_superapp_creator_plugin/routers/application.dart';
import 'package:amway_superapp_creator_plugin/widget/back_button.dart';
import 'package:flutter/material.dart';
import 'package:flutter_html/flutter_html.dart';
import 'package:flutter_screenutil/screenutil.dart';

class HomeGuideDetails extends StatelessWidget {
  var dataHtml;
  int type;

  HomeGuideDetails({@required this.dataHtml,this.type=0});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        brightness: Brightness.light,
        backgroundColor: Colors.white,
        leading: BackButtion(
        onTap: () => Application.router.pop(context),
        ),
        title: Text(
          type==0?'指南详情':"我的圈子",
          style: TextStyle(
            color: ColorsConfig.c_2c2c2c,
            fontSize: ScreenUtil().setSp(19.88),
          ),
        ),
      ),
      body: SingleChildScrollView(
        child: Container(
          color: Colors.white,
          child: Html(
            data: dataHtml,
          ),
        ),
      ),
    );
  }
}
